
package Rod;


public class MinhaData {
 
    private int dia=0;
    private int mes=0;
    private int ano=0;
    
    public int getDia()
    {
        return dia;
    }
    public void setDia(int d)
    {
        this.dia = d;
    }
    
    public int getMes()
    {
        return mes;
    }
    public void setMes(int m)
    {
        this.mes = m;
    }
    
    public int getAno()
    {
        return ano;
    }
    public void setAno(int a)
    {
        this.ano = a;
    }
    
    public String toString()
    {
        return dia+"/"+mes+"/"+ano;
    }
    
    public boolean ehValida()
    {
        if(this.dia<=31 && this.dia>=1 && this.mes<=12 && this.mes>=1 )
        
            return true;
        
        
            return false;
        
            
    }
            
        
}